{
	arguments: {"pageToken" : "", "fields" : "short"},
	method: "GET",
	url: function() {
		if ($args.fields === "all"){
			result = "/history?projection=ANALYTICS_CLICKS";
		} else {
			result = "/history?fields=totalItems,itemsPerPage,items(id,longUrl)";
		}
		
		if ($args.pageToken !== ""){
			result += "&start-token=" + $args.pageToken;
		}
		
		return result;
	}
}